import React, { Component } from 'react'
import observer from '../util/observer'
export default class Right extends Component {
 
  componentDidMount(){
    observer.subscribe(data=>{
      console.log('Right组件接受到了其他组件的信息',data);
    })
  }
  render() {
    return (
        <div style={{flexGrow:1,backgroundColor:'pink',height:'100vh'}}>
            <h1>Right组件</h1>
            <div></div>
        </div>
    )
  }
}
